Fix logrotate file and add tasks log dir cleanup