File rename fix

When renaming a project file which is a link, also rename
the link label.
Fix bug #12431 - VCS error when renaming linked file

When looking for a repo for a path, look in solutions if no repo bound to
a project can be found. Also added null check just in case everything fails.