use ENV['ComSpec'] if no ENV['SHELL'] 

So gs works out of the box on windows