Fix Mac build script