updatemain tool and template

updatemain.pb needs to be built with PB 5.20 or newer