Fix and simplify looking up update scripts