daemonizing bugfixes

chdir to root fixes #19
clear umask