Fix for #6353 adding a newline between assembled files
assemble module: fix insertion of newlines when not needed.

This builds on GH-6359 and changes the logic so that a newline is only inserted between fragments if the previous fragment does not end with a newline.
Adding delimiter fixes to action_plugin + fixing local assembling with a delimiter

Also added a new integration test for assemble using local assembly
with a delimiter.