Support both rbenv and rvm.