add rm of tmp directories in case the script is rerun