fix for chef 12
added RAILS_ENV and RUBY_ENV to .bash_profile
small fix app_user def