Output newline after last entry before "/" when outputting grid to file. This make gridfile more robust for later usage.