Only record filename history when file is replaced