Adds support for changing env variables, depending on ruby version.