`walk` edge case fix

Fixed `walk` calling back early/repeatedly if the final entry is a directory
Merge pull request #43 from jdknezek/master

Fix Issue 42