WYBS: temporary fix for creating an output stream from a file in the case of non-existant parent directories.