Restructures the build directory