[ysh] Introduce EnvConfig, and use it to look up variables