fix logts for files with no trailing new line