Filter a list of filenames based on if their contents have changed.