Hand merging this pull request back to 1.4.0 branch

https://github.com/NREL/OpenStudio/pull/1146/files

[#75287866]
Work around to put Qt in the path for GenerateIddFactory on 1.4.0
Merge pull request #1149 from NREL/1.4.0-PortablePAT3

Hand merging this pull request back to 1.4.0 branch