add flash target build id

Major Change: 
+ add flash target build id
Minor Change:
+ fix typo "downlaod"
+ change string comare with null to [ -z]