calc last modified time of files under a dir