fix for export tests: if output file is in non-existent subdirectory, create it first