normalize path ending before adding to the DB

Path endings should be normalized before being added to the database as the matching algorithm depends on exact matches of path endings.

I had something like this in my DB:
```
10  /projects/a/b/code
100 /data/code/
```
"j code" jumped to "/projects/a/b/code" instead of "/data/code/".