configure: Check for $tool-qt4 before $tool

ArchLinux adds the -qt4 suffix for the tools from Qt4 to avoid conflicts
with Qt5, so it's better to try those first.