removed use of local variables in shell scripts in order to remove dependency on bash
Merge pull request #1218 from zambal/remove-bash-dependencies

remove dependency on bash in shell scripts