remove extra linebreaks at end of file