modify exclude_dirs and files template