Prune irrelevant file header lines