If temp dir is not writable, use the dest folder for temp destination files (Javier Paredes)
If temp dir is not writable, use the dest folder for temp destination files (Javier Paredes)

dcherian/export_fig,altmany/export_fig,dcherian/export_fig,hyiltiz/export_fig,altmany/export_fig,qqyoungqq/export_fig,JacobD10/export_fig,hyiltiz/export_fig,JacobD10/export_fig