Fix build.sh for mac build