Fix toolchain build log handling.