Fix issues with missing EOL characters at the end of file