Call update_version() when a file is saved.