Add forgotten local declaration.
Fix use of non-exist variable 'count'

Fixes shell error:
""bash: 46 / : syntax error: operand expected (error token is "/ ")
Merge branch 'develop': post release fixes