Fix to create unique temporary directory to place downloaded and unzipped files

We have multiple instances of appium running on a single Mac machine.
The zip file of apk is pulled from hudson.
While, running test in parallel on multiple devices ,the file is getting downloaded and unzipped into the same directory by all appium instances at once ,  which is causing the issue and making the tests fail.
I have made a fix to create a new unique directory whose name is made up of current date,month,year,process id and random number in the operating system temporary folder.The file will be downloaded and unzipped into this folder.
This seemed to resolve the issue.
Please review and let me know if there any changes required  or if there is any better way of resolving this.