fix mac build script