copy/move file improvements for output_directory option

Better error reporting as well