Fixed issue 3729

The logic used to read the file contents sometimes would leave lines behind unread. It now defaults to reading all lines and counts each line it has actually read.
Merge pull request #3803 from mitchellh/issue-3729

guests/windows: change elevated shell output to better get output