Resolve buildDir before it is used in other join calls