Minor fixes to rh-repos function