Fix detection weather a toolchain can be built on host.