use Rails.env which accounts for missing environment variables
Merge pull request #8 from rubytune/missing_rails_env

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