Update factory reset script