Need newlines or insert_local doesn't work

This fixes a problem with insert_local not appending newlines, causing the Dockerfile to be formatted incorrectly.

@bfulton @adamjt @nahiluhmot 

/cc @ulyssecarion