fix(validator): correctly check for javac on windows

This commit fixes the JDK detection on windows systems where javac is
called javac.exe

Closes #1