Refactor rbenv_global provider and add specs.