Use a list instead of a tuple when running dpkg-query command

Refs #18450