fix flash target command for OSX