Make the tmpdir hack less hackish.

We now replicate the (GNU-only) --tmpdir option in shell code.  This
should work on both Mac and Linux, whether or not $TMPDIR is set.
Merge branch 'integration' into simple-graph
bang graph functor now takes GRAPH_DATA instead of param