splitdiff: Fix handling of headers

Signed-off-by: Michael Buesch <m@bues.ch>