add compatability with rbenv