modulepath needs to be set, and be set differently if environments is set.

Also, environments are now disabled by default.