Exclude correct slash from sub-path match