Fix and Standardize explicit variable quoting and expansion

This is the first of several pull requests meant to simplify and standardize script code practice throughout the build scripts. For example, this pull request:
* Standardizes white-space in the build function declarations
* Standardizes (and makes explicit) variable expansions across build function declarations
* Switches to single-quotes rather than double-quotes whenever possible and sensible