Change directory before generating man pages