write to stdout before exit 1
Merge pull request #4356 from StefanScherer/fix_winrm_should_upload_file_problem_4054

fix should_upload_file, write to stdout before exit 1