Improve tempdir
Fix main task runner