dpkg -s is a better test for package installation