Change how filtering of proper filenames are done.