Removed unsed vars and moved die() to share
Merge pull request #193 from blueboxgroup/standardize-bash-var-referencing

Removed unsed vars and moved die() to share