Properly daemonize eye process on launch

The daemonization code was not releasing the current dir and not changing the process group. This leads to issues in determinate circumstances.

For example, running eye from ssh with an allocated pty would start and kill it immediately:

ssh root@host -t "eye load /etc/eye.conf"

Without the pty it works:

ssh root@host "eye load /etc/eye.conf"