Fix logic to check what Qt version is used to build IFW

Change-Id: I5c67d26c01d41edd52c403bc45bf7baf6b10fdc9
Reviewed-by: Iikka Eklund <iikka.eklund@theqtcompany.com>