Patches for check_log bugfix for logrotation [sf#1489664] [#653]