Fixed bug in dry_run in deploy.