Fixed result code error messages when running under Linux.