Fix the directory check for collection to make sure they specified a valid directory instead of a path to a file
Merge pull request #429 from timrae/FixCollectionPathCheck

Fix collection path integrity check