Do not change directory while walking

* change directory in a subprocess only.