Improve path matching behaviour of non-end mode

* Non-strict mode with a trailing slash will become an optional trailing slash
* Only match optional slash at the end of the path (not in the middle)
0.2.2