Merge env based config to top level config and use not only command line options but also RAILS_ENV and RACK_ENV.