Bug 12655 - upgrade() is broken (wrong pidfile handling)

Summary: upgrade() is broken (wrong pidfile handling)