bootserver: fix command line flag handling
bootserver: add missing variable declaration