scripts/dfuutil: support both "alternate setting" name and number
scripts/dfuutil: support both "alternate setting" name and number

Initial assumption with Arduino 101 was that the "alternate setting
name of the DFU interface" would be simple enough to be used as the
grep pattern when attempting to find the board in DFU mode.
However, for boards such as the 96Boards Carbon, this name includes
grep meta-characters, so the DFUUTIL_ALT environment variable is
provided as a numeric value, instead of the previously expected name
string.
In order to avoid false positives, we now check whether DFUUTIL_ALT
is a numeric value, and the grep pattern is adjusted accordingly to
search for either "alt=" or "name=".
Also take into account that the name might contain spaces.

Change-Id: I81351d03bd727b35093fd1280e2b8b6904f3c89b
Signed-off-by: Patrice Buriez <c8c09b4c3aedbc79d1db6ac7b98dc52118590c1d@intel.com>

Vudentz/zephyr,GiulianoFranchetto/zephyr,zephyrproject-rtos/zephyr,ldts/zephyr,ldts/zephyr,Vudentz/zephyr,punitvara/zephyr,bigdinotech/zephyr,runchip/zephyr-cc3220,sharronliu/zephyr,pklazy/zephyr,runchip/zephyr-cc3200,finikorg/zephyr,sharronliu/zephyr,aceofall/zephyr-iotos,zephyrproject-rtos/zephyr,erwango/zephyr,zephyriot/zephyr,ldts/zephyr,punitvara/zephyr,galak/zephyr,GiulianoFranchetto/zephyr,holtmann/zephyr,runchip/zephyr-cc3220,GiulianoFranchetto/zephyr,zephyriot/zephyr,Vudentz/zephyr,galak/zephyr,aceofall/zephyr-iotos,erwango/zephyr,rsalveti/zephyr,zephyriot/zephyr,ldts/zephyr,erwango/zephyr,bboozzoo/zephyr,nashif/zephyr,pklazy/zephyr,Vudentz/zephyr,runchip/zephyr-cc3200,explora26/zephyr,punitvara/zephyr,mbolivar/zephyr,rsalveti/zephyr,fractalclone/zephyr-riscv,pklazy/zephyr,holtmann/zephyr,mbolivar/zephyr,galak/zephyr,nashif/zephyr,finikorg/zephyr,GiulianoFranchetto/zephyr,galak/zephyr,sharronliu/zephyr,nashif/zephyr,kraj/zephyr,zephyriot/zephyr,fractalclone/zephyr-riscv,runchip/zephyr-cc3200,finikorg/zephyr,mbolivar/zephyr,runchip/zephyr-cc3200,aceofall/zephyr-iotos,bigdinotech/zephyr,finikorg/zephyr,zephyriot/zephyr,holtmann/zephyr,nashif/zephyr,bboozzoo/zephyr,erwango/zephyr,fbsder/zephyr,bigdinotech/zephyr,fbsder/zephyr,ldts/zephyr,fbsder/zephyr,mbolivar/zephyr,bigdinotech/zephyr,pklazy/zephyr,fractalclone/zephyr-riscv,bigdinotech/zephyr,rsalveti/zephyr,holtmann/zephyr,explora26/zephyr,Vudentz/zephyr,sharronliu/zephyr,bboozzoo/zephyr,bboozzoo/zephyr,finikorg/zephyr,rsalveti/zephyr,zephyrproject-rtos/zephyr,nashif/zephyr,kraj/zephyr,kraj/zephyr,sharronliu/zephyr,fbsder/zephyr,aceofall/zephyr-iotos,kraj/zephyr,zephyrproject-rtos/zephyr,runchip/zephyr-cc3200,pklazy/zephyr,GiulianoFranchetto/zephyr,explora26/zephyr,punitvara/zephyr,explora26/zephyr,fractalclone/zephyr-riscv,Vudentz/zephyr,erwango/zephyr,runchip/zephyr-cc3220,punitvara/zephyr,galak/zephyr,fbsder/zephyr,runchip/zephyr-cc3220,fractalclone/zephyr-riscv,mbolivar/zephyr,runchip/zephyr-cc3220,bboozzoo/zephyr,zephyrproject-rtos/zephyr,rsalveti/zephyr,holtmann/zephyr,kraj/zephyr,aceofall/zephyr-iotos,explora26/zephyr