ensure all files we create end with a single newline

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
Merge pull request #312 from asteven/issue/312

all files cdist creates should allways end with newline