bug fixes for _exclude list and directory filtering