Replace filenames globally in file (in case of multiple occurrences)