modified tests so they work cross platform on windows

Need the tests to run on windows so changed the tests not to assume unix style paths but to be portable instead.
The thing is I'd like to have extracted all the preexisting strings into named values so they didn't seem magical, but I had no idea which platform etc generated those strings related to - so couldn't come up with any names.
I can inline.