Sorry - I was trying to get at TonyWong's directory issue.

The temporary logfile issue is obvious (or at least I thought it was; perhaps I should have made that clear)