changes to add another clause to the directory/file check
Merge pull request #63 from lowks/master

changes to add another clause to the directory/file check