qi_generate_qt_conf: bug fix when using a toolchain

Change-Id: I29e641f8217082fd220273af8ed12dc7d0f6d85b