Ensure single trailing newline

This ensures that all files have a single trailing newline (some had none, and some had more than one).

cc @ymendel