Fix comparisons in `subpath`