Added the ability to exclude directories from rendering