Add newline at end of known_hosts and authorized_keys

When rewriting keys files, automatically add a trailing \n. This is the correct
way to format them, and my ssh assumes this when adding new entries to the end of
the file.