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.

@juliandunn I was able to reproduce #3729 consistently with a mini-test report handler. This change fixed it for me. Can replace the elevated_shell.ps1.erb in your Vagrant install directory and see if this fixes it for you?