Do not chdir when walking
Fix depth support after @rubik's chdir fix.