make sysroot finding compatible with multiarch systems Tested on Debian 11 multiarch, worked just fine. resolves #109994