Flush d/a/copyright.new before running the scanner
Apparently sometimes the output can be reordered (likely because
the command output is being written to the file directly), so
before running the scanner, flush the output to ensure the header
actually comes first.
Backport !194 (merged).
Edited by Andrej Shadura