Use the run_on_modifications event to avoid running multiple time for editors that rename the file when saving

...ditors that rename the file when saving