[Config] Improve spec for not writing when unchanged