build: better fix for build directory not created