Well, you could just ditch the yielded value and use "fabric.api.cd" directly, for example. But no problem, I'm OK with your approach, too. :-)