Added code to check local repository and symlink files if they exist elsewhere