matchsubtitles: create undo file only when actually applying changes
matchsubtitles: use numeric vars for flags, and declare them