support both rbenv/chruby.