sanitycheck: convert a loop of 1 element to a single try block

Reviewed-by: Frédéric Péters <fpeters@0d.be>
sanitycheck: add more package name suggestions to failures

Reviewed-by: Frédéric Péters <fpeters@0d.be>