Fix update script to detect glob errors