Start fixing up script issues found by shellcheck

Signed-off-by: Christopher Larson <kergoth@gmail.com>