Tested to make sure works on Unix as well as Windows