autoupdater: fix initial upgrade script