Handle both Qt4 and Qt5 and add fallback in case of missing qscintilla2.prf