Before writing corpus properties file, ensure that the data directory exists.
Merge pull request #337 from larilampen/develop

Trivial fix for issue #336