Manually chdir for docs

We stopped calling chdir automatically as part of our inversion effort
(we're a library, not a framework).