Nasty heuristic to dodge tempfiles on linux