This allows to disable modules based on the environment, in particular `env[tools]` which tells us if we are building the editor or not.