Fixed issue with PID file.