mkdir bugfixed, tmp-file removed after send