Add an ensure new line at EOF function.