[CHEF-4507] Smartos package provider to match resource package_name

Previously, the check for package name/version matched on the local variable "name," which on the first loop is nil. This matches any line. On subsequent loops, the test is against whatever was found in line 1. Since pkgsrc will return any package that match search terms (even in descriptions or other metadata), it is very likely that the incorrect candidate version will be returned, and chef runs will fail (it will then try to install a non-existent package version).