Modify config path setting logic