Before writing corpus properties file, ensure that the data directory exists.