Fix build with gimp3 This backports three commits from upstream intended to work with gimp3, which has made some backward-incompatible gimpscript changes and now requires an explicit --batch-interpreter option. It also switches from gimp to gimp-console, to work around a bug https://gitlab.gnome.org/GNOME/gimp/-/issues/12042
This slightly modified the patches to backport them, since upstream switched from "which" to "command", which was not done in this version yet (so this sticks to "which").
This change should still be compatible with gimp2 as well. ===================================================================