K, I may merge this as is.  We can try to default to system tmp dir by default later.   I'm targeting these fixes for the next major release, so we can even do some (minor) BC breaks if needed.