make run_locally work with --dry-run
Merge pull request #400 from thisiskun/master

Make run_locally work with --dry-run.