Changed the way logfile names are generated, to avoid conflict when users specify a derectory to the temp folder, instead of the name of the temp folder.
Tested. for instance, -t 'asd/asd' and 'asd/asd/' will create asd.log instead of 'asd/.log' which raises an error in python.