All good except this line, gotta test this, it might break my (and the most common) setup whereby Yii lives in the root. There was something done in this file to allow for other setups via adding a config string, I think the `$env` variable covers that.

Could just use that instead?