check parameter expansion of shell scripts

ensure the format of parameter inside shell scripts to be ${parameter}