[vim plugin] fix project paths (refs/rename)

tern responses list paths relative to projectDir, but Vim buffers can be in subdirs (either because they were opened there, or because of `:cd/:lcd`). That led to errors in `TernRefs` and `TernRename`.

see https://github.com/marijnh/tern/pull/76#issuecomment-16868574