test: make realpath tests case-insensitive on win

process.cwd(), which is used in lots of the tests, may return
a different value than what realpath will return even though
they are the same path when compared case-insensitive.