backwards compatibility for the environment parameter

A small tweak which will allow people still on Ruby 1.8.7 to continue to use guard-rails