remove newlines at end of files