contrib: qt: fix the moc version detection
Following 6140b72e we check moc instead of qt-cmake. But we should use system_tool_majmin in this case, like the other tools.
Fixes this line written each time make is called:
/bin/sh: 1: Syntax error: end of file unexpected