Can we pull this prefix stuff out into a separate method? Also, to confirm, `ensure_gem` and `gem_installed?` still works without rbenv installed, correct? We're using terraform at Liftoff without rbenv.