Fixes on macdeploy.sh