If dpkg-query fails with "-p", try again with "-s"

NOTE: This is necessary for packages such as "io.pangu.axe7".