Add support for local package installation with pkgng.

This patch allows local packages to be installed if available.