Avoid using `pwd` command in tests

On my windows system, pwd.exe bundled with omnibus gives very odd
results.