Don't attempt to test empty directories.
Merge pull request #2 from ChoHag/master

Don't attempt to test empty directories.