Add rehash method for rbenv module

- After installing gems or rubies, rbenv rehash should be run
- No harm in running it multiple times or when not strictly needed in
  the do method.
Merge pull request #9626 from amco/add-rbenv-rehash-method

Add rehash method for rbenv module