fixes app_env variable by rails_env variable