Improved config file parser.