modify copy.sh for osx