Add support for PID-file support