Added a newline at end of the Mercurial and Java files in order to build a gitignore file from multiple templates.