Massaging the build process

Preparing ground for further work on build scripts.
It's another ugly hack to get around the ugly escaping. But I'm not sure the new hack is better than the old hack. Maybe `printf` is the solution here too...