Fix bug where environments could not be used with chef-solo

When running chef-solo and trying to load an environment, it was loading a Hash, instead of an Environment class (probably due to legacy code that wasn't updated). Here's a fix I provided for that.

@beso323