Better daemonize support