Check for invalid pid file on startup