check if the pid file exists