Revert "Update the matching process for package_installed"

This reverts commit 8db51b931240dfe9fd5dfd29a581340d0e50c767.

Need grep command for stdout