Minor cleanups to error message logging on unix