Fix #39. Check for excluded path before fs.stat
Merge pull request #45 from doochik/issue-39

Fix #39. Check for excluded path before fs.stat