Yeah, this needs to change in the backport, b/c there's no `with` on py2.4. So we need something like:
```
fake_with(context, f, *args, **kwargs):
    context.__enter__()
    try:
        f(*args, **kwargs)
    finally:
        context.__exit__()

fake_with(redirect_stdout(StringIO.StringIO()), exec_command.exec_command("cd '.'"))
```