try to do this before cd-ing into the build dir