The attached patch fixes the issue. As a side note, the patch makes the code perform what is in the code comment: "We don't consider the first or LAST segment of a path." The last segment was considered before.
The attached patch fixes the issue. As a side note, the patch makes the code perform what is in the code comment: "We don't consider the first or LAST segment of a path." The last segment was considered before.