(#16752) support pkg.conf on openbsd

These patches adds support for reading the installpath from /etc/pkg.conf and using that as the PKG_PATH on openbsd. This supercedes PR #1297