Fix issue when saving file links in shared projects

The link path doesn't have to be prefixed with the directory location
variable since it is a path relative to the project folder.

Fixes bug #20063 - Adding a new file to a shared project results in a
self referencing file link