--tmpdir & TMPDIR are functional in sort-bed.  Still have error cases to deal with.