reinsert oldFilePath = relativeFilePath in while loop