[tools] Fix "unbound variable" error in prepare-build-dir See merge request flowpack/manycore/emper!19