Daemonize agent scripts