[package] common.sh: apt-cache search always returns 0; get number of lines instead