[#2338] Store the temporary packfile in /tmp

This is a simple and non-intrusive solution to #2338, without making it into a special-case processing.