This commit fixes issue #8628.

Allow environment name to start with a substring of the default environment names.
For example: tes, pro, prod, dev, devel, etc.