Augment, don't replace environment

Along the attempts to track down the Travis failure, this updates the
application_helper to augment the environment rather than outright
replacing it.