Fix the update script to properly detect pid file.