configure uses `command -v` instead of `which` #13147
auto merge of #13193 : pongad/rust/fixconfig, r=thestinger

Fixes #13147

Not a shell pro myself, though after running the new config, make and make check still work ok.