Fix an inconsistency in treatment of trailing / in path::const_iterator