Fix modification date check

@jmartinm discovered regression with very specific case (see the test case and commit message).

--
@klen I guess this deserves release of `v1.1.1`