Merge pull request #2476 from linquize/config-lf-eof When adding new config section, handle config file not ending with LF