fixes modify events not to rely on modtime.
relying on modtime has an issue with the timestamp granularity.