Fix daemonization finally.