CHG: OSX compat, awk instead of cut and rsync instead of cp