Added check logic for auto_flash_from_TWCI.sh