Update script helper phases to check process owner when reading PID files

Needed when the PID file is created by a process owned by a different user, and is not readable by the user Brooklyn is connecting to the remote server as.