use old version of temp-write for 0.8.x compatibility