restore-mtime: support restoring a smart mtime for directories

Our directory mtime here is recursive, and is based on the latest mtime
of any file within a given directory (or any of its subdirectories).