Fixed missing parentheses.
Automatically install portinstall if not found.
Assume pkgng when pkg_info/pkg_delete not found.