Improve note and search embed build tasks
Improve note and search embed build tasks

* Use `/tmp/build` instead of `/build` for temp build files
* Ensure complete replacement of note embed contents when copying
* Reduce some duplication

monofox/documentcloud,Teino1978-Corp/Teino1978-Corp-documentcloud,monofox/documentcloud,monofox/documentcloud,Teino1978-Corp/Teino1978-Corp-documentcloud,documentcloud/documentcloud,Teino1978-Corp/Teino1978-Corp-documentcloud,Teino1978-Corp/Teino1978-Corp-documentcloud,monofox/documentcloud,documentcloud/documentcloud,documentcloud/documentcloud,documentcloud/documentcloud