Set stdout & stderr before fork