Deduplicate findBinaryPath() and do not try "command -v" on windows

Currently running unit tests prints the following message 3 times:

> The command "command" is misspelt or could not be found.

Instead of trying this, we just skip this now.

@LukasReschke @MorrisJobke