stdout and stderr both redirecting properly to temp file