update config_env to support ext repos