Handle tags in update script

Signed-off-by: Paul Brook <paul@nowt.org>