Fix typo: change "directoy" to "directory"

Some error messages for "is not a directory" had a typo.