Fixed mac build script