it may what hacky solution, but write the config from the file to the disk by your own, whit the correct headers
Just a question. The variables inside the config.yml will always be in the same order??? I have a solution, after saving the file use a method to switch the lines.