Moved cd() context manager out of the Benchmark class.