Only touch file if changed