fix for Chef 12, added RUBY_ENV and RAILS_ENV