Allow configuration of environment variable name (RAILS_ENV for rails, RACK_ENV for sinatra)