Replace basedir with buildDirectory from warlock-build.properties.