filter-branch.sh: remove temporary directory on failure