CLOUDSTACK-3540: Fix edithosts.sh on matching tag

(cherry picked from commit 46f2b61374c2012bca251c1de58fb1250e50b755)