altoslib: Correctly save firmware version in AltosState