add flash target build id
fix typo "downlaod"
change string comare with null to [ -z]