Not sure why you can’t just have your build script create the build directory?
Because you might not have a build script?
Because you might not have a build script?