rbenv checks and install code