When calling stat, check for last modified time instead of last accessed.