Function for installing Ruby through rbenv