tar-tree: Use SHA1 of root tree for the basedir