Add slightly buggy support for re-exec.