Fix handling of multiple RPM versions in the same repo