handle %global like %define in output_versions