update a bunch of path manipulation code to make the first handful of tests pass on windows
more tests are passing on windows.