Fix updating directory timestamp