Fix for which command deprecation in debian Bookworm/unstable.

3 jobs for master in 2 minutes and 12 seconds (queued for 18 seconds)
Status Name Job ID Coverage
  Test
passed test_matlab #33358

00:00:47

passed test_octave #33360

00:02:11

passed test_old_matlab #33359

00:01:03