Use ProjectManager.makeProjectRelativeIfPossible() instead of the string replace call here