Allow retrieving RAILS_ENV from java properties then web.xml