main/ngircd: add pre-upgrade script