Add a PID file for --background