Using new SystemPaths.getTemp() and refactor to setup the temp folder.
Minor cleanup.