Fixed #64: Ensure parent directory on writeStream