Fix global modules detection

Now that env.js became `env/index.js`, global mobules are relatively 5
levels up from it.