Fix exitcode check bug for logrotate

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>