style: lower-case variables in shell scripts
Currently the shell scripts use upper-case variable names. This is poor style because it can clash with variables used by the shell (and I have already run into this issue). Thus, change the variable names to lower case.