[NuGet] Fix unit tests on Mac

Use native file paths on non-Windows operating systems in unit
tests.