give the `env` flag type `[String]`, improve code (fixes #748)
Merge pull request #747 from gkz/env-flag-refactor

give the `env` flag type `[String]`, remove unneeded code