Fix mac build to compile to the correct directory