Added creation of the temp directory