Instead of failing to set the timestamp of a read-only file (like any object file), set it writable temporarily to update the timestamp.