Use external files rather than cat>> /path/to/file <<EOF
A number of the bash scripts have a variant of:
cat>> /path/to/file <<EOF
for multiline files. We mount the entire directory when we use each step. This allows us to apply patch files.
We should move the multi-line strings into files. Bot for clarity and so they can also be linted/checked by appropriate tools.