Cleaning up the build scripts for mac