fix version comparison in firmwareupdate.sh