Allow Repository->workdir() method to also set the working directory.

This addresses issue #8.