check for differences in the mode and path

that way changing from directory to file based searching will trigger
an update