Would be nice if metagen could check herd validity against herds.xml before writing metadata.xml
FYI there's a portage live ebuild by now that also installs the repoman.herdbase module.
Version 0.6 is in CVS now. This should take care of the checking.