Check the full path, not just the filename, for exclusion