removed extra replace_patterns in set_config_values