Improve code & add a global argument.
BUGFIX copy_file should only copy source file to destination directory.