Fixes for STM build script.
Major quotification of build scripts.