moved permission modification code to _copy_files.sh