Rework ModTimes to use git/hg instead of os.Stat