Improved Maven and Scala detection on Windows.

Since on Windows they are actually bat files, search for mvn.bat and scalac.bat in path.
Used Java File constants for special system chars.

TODO: on compilation error, check for newer library version and offer to download and retry