Fixed old PID file check