Fixing path tests on windows

The path tests were originally failing on Windows. This fixes them.

Tested on both Windows and Mac.