Ensure a newline (\n) at the end of a file

Change-Id: I1ab532b4c3d7410d3f0826f1ba678d2933780b52