Attempt to fix some mysterious constant resolution and ERB rendering problems as reported at https://groups.google.com/forum/#!topic/phusion-passenger/JcUJOBzILB4