get buildDirectory from Build only as a fallback