Different shells on vary in their error messages. Here we're satisfied if the shell mentions './foobar' at all.