Changed RBENV check to be platform inclusive

Since `rbenv` sets environment variables, this is a more sensible way to check for `rbenv`.

I'm sure RVM sets env variables too, so that would be a good change too.

This change was made, because this currently doesn't support homebrew installed `rbenv`