Fixed logic bug of auto_flash_from_TWCI.sh