Add upgrade-self subcommand.