Ported err to daemonize
typo on the dependdency
Moved the data directory check before the daemonization

Otherwise you might have absolutely no feedback if something goes wrong
(no log created).
Merge pull request #223 from gbin/daemonize

Ported err to daemonize