Fix installation of gatekeeper's ruby version twice
Refactor