Fix bad option handling for FreeBSD pkgng.

Closes #18851.