Replace ctime in file-stamp with mode, uid, and gid

When building on some remote filesystems (Mac NFS notably) the ctime
field may differ in the client cache and the server leading to spurious
"you modified it" warning. Tracking mode, uid and gid instead provide
most of the benefit of having ctime in the stamp without this issue.