Extract front-matter header from files