Fix PIDFILE support.