Patches for check_log.sh bug when log is unreadable [sf#1110973] [#411]