refactor(templates:express:config): use cached version of env

`app.geg('env')` is already cached in the variable `env`, so is better to use it.