Fix daemonization with newer daemon module