Added cleanup to the beginning of the script to clean out the tmp dir