behat: use bash function to allow inner calls to `wp`

(bash aliases seem to be available only in interactive mode)
behat: don't hardcode `wp ` in the step definitions