parser: minor code simplification
parser: fix parsing of section header
Merge pull request #3 from benoit-pierre/fix-config-parser

Fix config parser