Shellcheck kernel build script
This makes shellcheck pass making it simpler to modify this in the future since typos in variable names, etc are catched before running the script. 98% of this MR is putting quotes around shell variables.
Note: No need to review this before !74 (merged) is merged since this MR depends on that one.
Edited by Guido Gunther