Trim end of line in lockfile.