correctly set the path module for p4 tests on windows

This fixes #2916.
Merge pull request #1237 from djmitche/bug2916

correctly set the path module for p4 tests on windows