check parameter expansion of shell scripts
add double quotes to ${} except for set $line command
use $() format for command substitution instead of the `` format
Trivial shell code cleanup.

* ccl/pull/501/head:
  use $() format for command substitution instead of the `` format
  add double quotes to ${} except for set $line command
  check parameter expansion of shell scripts