Fix gems installation.