Merge pull request #60 from lowks/master

Found a typo while reading docs. Correcting
Adding another clause to check for directories in the false case of type checking