fixed bug in file/dirs exclusion