module Mixlib::ShellOut::Windows::Utils

def self.find_executable(path)

for a binary there.
The OS will search through valid the extensions and look
Windows has a different notion of what "executable" means
def self.find_executable(path)
  return path if File.executable? path
  pathext.each do |ext|
    exe = "#{path}#{ext}"
    return exe if File.executable? exe
  end
  return nil
end