ensure that working directory is not included as an excluded folder name