return the version of 'pkg'

def _get_pkgng_version(jail=None, chroot=None, root=None):
    '''
    return the version of 'pkg'
    '''
    cmd = _pkg(jail, chroot, root) + ['--version']
    return __salt__['cmd.run'](cmd).strip()