Update the matching process for package_installed

Don't have need to use the 'grep'.
Realized with only 'npm ls #{pkg}'.
Merge pull request #2 from Blufe/patch-1

Update the matching process for package_installed