Replace some more "command -v" calls with the Helper method

Remove some more output mid-unittests on windows.

Second part from #12303 

@MorrisJobke @icewind1991 @LukasReschke 
Thanks :) I guess it will help to understand the code in 1-2 months ;)