only format, if tmp dir doesn't exist