Fix PID file