Add a check before setting rbenv.