Fixed directories creation on export. Closes #20