Fix minor bug in URI/path comparison.

If `uri` is `/subdir/` and the `item.url` is `/subdir/index.html` then
`index.html` needs to be added to `uri` and not `item.url`.