Support more than one devices for flash_local.py