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`.
Merge pull request #81 from benjie/patch-1

Fix minor bug in URI/path comparison.