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
Improve error message for diverged deps
Merge pull request #1217 from ericmj/mix-outofdatedepserror

Improve error message for diverged deps