Fix command_exists for darwin

1 job for master in 6 minutes and 26 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Test
passed #144787
x86_64-linux
test

00:06:26