fix shell var quoting again

so someone showed me www.shellcheck.net and I went nuts "fixing"
a bunch of my sh scripts without checking them. :/