mktemp --tmpdir doesnt work everywhere