Ran shellcheck and applied suggested fixes for prevention of globbing and word splitting. https://www.shellcheck.net/wiki/SC2046 https://www.shellcheck.net/wiki/SC2086