make latexmk continuous under windows more robust

This makes latexmk continuous work under Windows for Vim and gVim and under every Terminal.

The details of the implementation are commented.

Maybe all of this could be refactored. For example, if would be nice to have a universal command that reads the output of a bang command under any OS and Shell.