Fix some minor errors in build_toolchain script.