behat: move theme dir acquiring to the 'Given' block
behat: more misc fixes