OS detection bug fix 

Under windows, it wasn't possible to use shortlog -ns parameter since at the end the cmd would be  
cmd += ' < /dev/tty';
which is available only for linux/posix operating systems.

OS detection was implemented and in case of windows we can use
 cmd += ' < CON';