Generalize file paths in update scripts