Fix issue with wrong format.
Tweak a few things for temporary folders.