Keep trailing newline in upload_template.

When using jinja the trailing newlines are removed,
this causes the last line of a crontab to be ignored.