Use a random temporary directory for storing dsym files; clean up after ...

...the script has finished or something goes wrong

I have made the following changes:

1. use a random temporary folder instead of a hardcoded one
2. add a clean up function that deletes the folder if something goes wrong, which is called at the end or if something goes wrong before that