up to 1.3, uses which now to find mktemp/tempfile