This functionality is already present for non-qt output since #16308, and it was skipped to add in #15529.
Not finding bitcoin-qt.exe and test_bitcoin-qt.exe in the src\qt\ folder could confuse users.
This PR fixes that issue in the same way like #16308 did.