Fix windows cli .bat tools

* windows paths set correctly in profile.bat
* .bat cli tool scripts cleaned up and fixed

for #843