fix a bug of looping in bash script for Mac OS
Merge branch 'develop' of https://github.com/pupeng/hone into develop