flatten the build directory