Only get version if pkgng is installed

A small fix to the fact to only get the pkgng version if it actually installed.

Else the fact wil "lock up"  on systems that have a " Do you want to install?"  pkg binary