Quick fix to stop crashing on reading subdir.
Merge pull request #9 from mootboy/fix-path-crash

Quick fix to stop crashing on reading subdir.