Fix for development environments without RACK_ENV or RAILS_ENV (like Pow)

Just using Rails.env here, which defaults to 'development' when both environment variables are missing.