Yeah, this is not particularly elegant, but I could not find a nicer way.
The goal here is to preserve the preamble function, while start building source maps for the concatenated JS. 
For this, I need .map files for all pieces, hence the usage of temp files. 
If someone can come up with a better way, then we can remove this.