Made usable on Windows and change using temporary files to one for each object of class 'task'