Fix logical error in toolchain build script.