9908: fix check of the toolchain's path r=lnicola a=gfreezy fixed #9907 Co-authored-by: Alex.F <gfreezy@gmail.com>