Fix toolchain detection.