Fixup on version pinning

Previously version pinning was not working due to the code not checking
for the requested version and just calling the install method.  This
  work corrects this behavior by checking the requested version and
  calling the install method to ensure the correct version gets
  installed.
changed the pkg command to make it easier to parse and updated the parsing lines
update pkg query arguments
Get tests functional for installing a specific version
Merge pull request #51 from xaque208/versionfix

Fix version pinning