Fix reading pkg.conf