Update environment_config.sh

fix some bugs.