fix rbenv module UnboundLocalError
Merge pull request #14428 from TiteiKo/fix-rbenv-module

fix rbenv module UnboundLocalError