Correctly set pending_dirs to support walking subdirectories recursively.
Merge pull request #70 from puls/master

Correctly set pending_dirs to support walking subdirectories