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 
Since `$smbClientExists` is a bool (see cast on assignment), it should still be the same.