do not filter directories just because their (empty) extension has no grammar.
Merge pull request #5 from axeolotl/master

Fix: Only filter directories by name.