Better Windows support (primarily handling paths with spaces in them)

This doesn't generally matter on Linux systems, but Windows machines are pretty likely to have paths with spaces in them. Quoting the paths prevents this from causing problems.
should the contained block be executed if editor contains a space (which could happen on unix systems), or should is it windows specific and should it be executed if its a windows system. I'm not entirely sure, but if its windows specific, then it would be better if the if reflects the true purpose, and we could use one of these instead: http://stackoverflow.com/questions/170956/how-can-i-find-which-operating-system-my-ruby-program-is-running-on