modified make_dist_mac.sh