diff --git a/download_and_compile.sh b/download_and_compile.sh
index e72b704..8729389 100755
--- a/download_and_compile.sh
+++ b/download_and_compile.sh
@@ -313,7 +313,7 @@ fi
 
 # Ensure 'dctrl-tools' is installed
 if [[ "$(dpkg-query --showformat='${db:Status-Status}\n' --show dctrl-tools \
-                    2>/dev/null)" != "installed" ]]; then
+                    2>/dev/null | awk '{print $3}') " != "installed" ]]; then
   if [[ "$DOWNLOAD_PACKAGES" = "y" ]]; then
     _aptInstall dctrl-tools
   else