Adding support for writing stream export files to the local filesystem instead of returning their contents as a string.