Fix typo: change "directoy" to "directory"

Some error messages for "is not a directory" had a typo.
Merge pull request #9 from bstpierre/master

Fix typo in error messages: change "directoy" to "directory"