removing trailing newline from all files