Add fix for line length detection under Windows