Use PATHEXT in salt.utils.which on Windows

Fixes #8125.