saving daemon PID (instead of CLI one) when in daemon-mode