Update pkg_search

added condition to break if answer is 0 (no packages installed)