Fix get_version_code parsing and split it off into a new Device.get_version method.