base-files: upgrade: add get_image_dd()
This is mainly to handle stderr message "Broken pipe", "F+P records
in/out" by common pattern "xcat | dd .."
Ref: https://bugs.openwrt.org/index.php?do=details&task_id=3140
Reported-by: Philip Prindeville <[email protected]>
Signed-off-by: Yousong Zhou <[email protected]>
Reviewed-By: Philip Prindeville <[email protected]>