Set build directory correctly