Fix literal patterns containing slashes.

This fixes both `--ignore foo/bar` on the command line and `foo/bar` inside a VCS ignore file.  Both of which I've tripped over.  :)