title: How do I detect how to escape spaces in a path
body: <p>In Cygwin a space in a path has to be escaped with a backslash
  Not true in Windows, put the whole path in a quote</p>
  
  <p>Is there a way to convert to this automatically in Ruby?</p>
  
  <p>Otherwise, how in Ruby do I detect if I am running with Windows or Cygwin?</p>