Update 'copy_file_contents' bash function