saltstack/salt — pull request #8121 by terminalmage (2013-10-27 02:10:20+00:00)
Title: Make salt.utils.which look for a path with .exe on Windows

If the argument passed to this function does not end in .exe and the
minion is running Windows, look for the path + '.exe', allowing both
'cmd.exe' and 'cmd' to be matched.

Fixes #7904.