Auto detection of execution environment

Tasks auto detect the execution environment `--env` option if the
target name is either `prod`, `dev` or `staging` and the `env` argument
is not given.