Fix autodetection of the error log filename on Amazon Linux. Fixes issue #933.