Fix daemonization with newer daemon module
Merge pull request #299 from smfreegard/master

Fix daemonization with newer daemon module