Is it absolutely necessary to do the build inside the cache directory? Everything should be available in the temporary build directory already.