Move environment load after module has been registered.