working directory constructor and corpus.directory