Simmilar to many other similar path handling tests, convert the
test reference to preferred separators, and ifdef a few test references
that use network root names.
Additionally, generalize code for trimming off the root path for
generating relative_cwd, and for skipping the root name element
in count_path_elems.
There's no subtle difference between //base and //foo, right? I wish this test'd use //foo here.
Also, please add these tests, of which all but two I would say are "missing" right now on Windows. (On POSIX they should be basically duplicates of existing tests, but we might as well test the expected output on POSIX as well.)
And these Windows-only tests using drive letters, because this is the only way to get a path with a root-name but no root-path, right?