Only open the pid file if we're going to use it