state: only use mtime to get state of a file

Necessary for some reversible code-mangling tools I use,
which modify both inode number and ctime.