Added code to consider a file as modified if the last write time is newer than last recorded action