Fixes find_command on Windows

Trying the command name with the extension doesn't make sense.

Also, the comments were misleading, as they stated that the path was
first tried without extension and then with it, although the opposite
happened.