Fixes item # 192 in SirCmpwn/Craft.net

Avoids errors when a directory is empty.

This way it will not return empty directories.

See Item 192 for further details.
Merge pull request #193 from kaltinril/master

Fixes item # 192 in SirCmpwn/Craft.net