updating config files to detect sys envs