import correct default template
unix line endings
reapply previous patches to template