Making the fixing of broken links in case of renamed files, more generic