Build: Make clean function simpler
Build: Abstract the shell interaction
Build: Append parts instead of removing/altering

Appending rather than removing obsoletes such abominable operations as
multi-line find and replace in shell.