Fixed a bug with the way traces.txt file was saved after the user wanted to save it or move it around from the original place. The script now has a temp directory at root.