Fix the gem list so it doesn't load useless ones.