genmetaindex.py: fix metaindex.xml generation