Update rebuild_indexes

Don't change the group, let environment do that
Don't generate legacy Ruby Gems indices