Defining an Optimal Metric for the Path Collective Variables