Reset errno before parsing pkg.conf
Fix parsing yaml sequence