Changed the file module to look more like the standard salt file module #6443
Some better error handling for copy #6443