update ota_from_target_files to CM's version