Added option to exclue certain directories