Updated dependencies build script for mac