Modified basebox upgrade script.