log failure output and override windows temporary dir