Make the test runner work on windows and linux

For windows users to be able to run tests, they have to install
either MSys, or Cygwin, or Git for Windows, and have it available
on their path.