Remove last newline in file