Preserve newlines at the end of files if they exist
Merge pull request #9 from k88hudson/8

Preserve newlines at the end of files if they exist