Fix auto sh-* generation for *envs when more than one