fixed problem with matching URL without trailing slash
Merge pull request #2 from wbachnik/master

Fixed problem with handling URLs that have no path and no trailing slash