Fixed and enhanced configuration parser.