- Correct the logic in buildtarget to match the logic in config.g for select which directory to build in.