Added the ability to exclude hidden directories