Remove first three lines if starting with "DO NOT EDIT THIS FILE"

Patch for #10312
Corrected errors reported by Jenkins
Merge pull request #10314 from muffl0n/develop

Remove first three lines if starting with "DO NOT EDIT THIS FILE"