Fix PID file

Was getting the id of logger