Replace dpkg -l with dpkg-query -W for Temurin JDK version detection
in setup_java(). dpkg -l truncates long package names in its formatted
table output, causing version extraction to fail. This triggered an
unnecessary remove+reinstall cycle on every update even when the
correct version was already installed.
The unnecessary reinstall caused ~110MB re-downloads and filesystem
block changes that inflated PBS incremental backups.
Fixes#13099