This version is rebased against the temporary directory patch which is now pushed upstream. The difference is that the script will now check if the -p option was specified and will not delete the work directory if it's specified.