removes unused gems from gem file and gem lock file.