Use $TMPDIR instead of /tmp

The latter is shared between all users and as this bundle use hardcoded paths (e.g. ‘output.diff’) there could be a conflict if two users on the same system both use the Git bundle.