Ensure environment data is loaded before hooks

This makes sure the environment data can be mutated by hooks
set by the application, prior to initialization.

The modified data is already available on the pre_init event.