[TOOLS] improve coverity script error handling

Signed-off-by: Jean-Christophe DUBOIS <jcd@tribudubois.net>