FIX file last update detection (use of stat() instead of fstat())
Undo the reopening of file handle introduced in the previous patch