remove unnecessary versions from gems