Instead of hardcoding metadata.json, generate it from .in files, adding installation prefixes, current target version and configured uuid.