Don't fail when writing out empty data files.
Merge pull request #17 from GraylinKim/master

Properly write empty files to disk.