temp hack to get env vars pre-loaded before_configuration

temporary hack as we wait for: https://github.com/rails/rails/commit/e1404ec824d263d25717468c6f4b73ee7b2bdf4c