Marking the last save time of a script file to be right before closing it,
and not before starting saving it.
This way the seconds countdown used to identify an external save will not
depend on the amount of time saving the script took.