Distribution upgrade script