check-code: expand sed rule to include more offenders

Expands the rule added in 5e4491c114b2 to include cases where the
address is a line number instead of a regular expression, and fixes an
instance of this pattern in test-unionrepo.t.

--HG--
branch : stable