Include profile name in error message on directory exec
... to make the error message more helpful.
Inspired by #285 (closed)
I propose this patch for 3.1 and master. (3.0 uses a different variable name - if we want it there, it needs a slightly different patch.)