Improve code quality after shellcheck.net test
Improve code quality after shellcheck.net test

Corrections to the script after recomandations from
http://www.shellcheck.net/

aeten/gws,StreakyCobra/gws,tst2005/git-ws,super7ramp/gws