create buildDirectory during generate.base