Fix Rails 3 support
Fix Gemfile ENV variable being reset