Remove duplicate newline at the EOF