Use project relative paths in index

We now rely on a combination of project name and a project
relative path to keep track of files in the Index.

Fix #1001632