Use platform slash in head and tail
Avoid redoing modelines when possible

Modelines that set the filetype in particular can have a measurable
performance impact.