Allow buildDirectory to be specified in buildConfig