qmake: correct Qt version detection. do not empty cache if recheck