test if rbenv exists
fix behavior, to be the same as original choose_by_hostname.rb