Now forks itself and checks for/writes PID file