[tools] Fixed iterating through the available hex files
Merge pull request #406 from 0xc0170/dev_target_fix

[tools] Fixed iterating through the available hex files