Add rbenv and some fixes