Fix transient failure during integration tests

Due to atime differences, tests may randomly fail. Fix this by only
comparing the modification time. The mtime is first set to the zero
epoch to ensure that modifications are always detected even if os.stat
does not provide sub-second precision.

Fixes #61