Fixes #2277
Instead of just checking if the new version started, make sure it is able to write its IPC key to a file and then use the key to connect to the process.