Fixed parsing envs when only a single env is given