This makes them pass shellcheck. Except for a few unused
export warnings.
I also wonder if the majority of these files should be
in the root of the project, or should be moved to "build-scripts"
(or should still even exist).
a few minor changes
one more minor changes