Fix bug in show coverage script, refs #1098