Allow mocking of pwd and grp on windows