Update deployment script to work with daemonized process