Fix bug where directories were mistakenly ignored
0.0.6