Use last path component if paths are equal w/no query or fragment.

- Closes #26.
Release 0.4.8.
Start 0.4.9.