fixes #2110
rbenv compatibility