Add script to fix bug -refs BT#7827