behat: show working dir when the return code is wrong
core config: use cmd_starts_with() instead of doing a strict array comparison