Improve dpkg query