uniform the code for latest_specs.4.8 for hosted and grouped repos and fix certain case with platform dependent gems