backwards compatibility for the environment parameter
Merge pull request #6 from htcl/ruby187_compatibility

backwards compatibility for the environment parameter