Backport of 607fa59 to 0.9.x - Makedirs mode
Merge pull request #7 from Kixeye/0.9.x-writer-makedirsmode

Update lib/carbon/writer.py (0.9.x)