check if the path is a directory before listing its contents - fix for #65 and #66
Merge pull request #69 from sole/master

Checking if extension folder exists, fix #65 and #66