Shellscript changes.

Shorter syntax
4 spaces of indentation
overrideable "CONFIG_FILE" variable
consistently use $(), not backticks
minor tweaks