Fixed a hang when using --remove-source-files in dry-run mode.