add path () to flash_device.sh