Archipel-Agent : Make a better daemon to fix #972

Now systemd can get the right pid file for the detached daemon.

Can you please try this one ?

The only issue I got is that system emit a waring because it doesn't find the pid file when the parent exit (it is found few milliseconds later).