cyto/fixed a file already open error and wrote to file if myfile is excel type and output_dir is given
