Set the timestamp after writing the header files to avoid false positive detection on focus.