Naively comparing sorted dict keys does not guarantee that maps are equal. We must compare mtimes for filenames in case keys are the same to make sure there isnt a modified file.