Move environment.rb to top level