Fix tmp dir

Fix the issue involving executing synctest after the data_dir work. Also, fix some inconsistencies in the way test logs were generated.