contrib: call qmake6 less often when it's not found or the version doesn't match
We only use QT_LIBEXECS and QT_BINS locally to check native tools. If the Qt version doesn't match or qmake6 is not found, we don't need to call it that many times.
This also avoids logging errors like:
make: qmake6: Command not found