Fix `pwd' not found problem when building on windows