Fix `pushd` tests on Windows.