correctly set the path module for p4 tests on windows

This fixes #2916.