cmd_sf: Fix problem with "sf update" and unaligned length