[BUILD] Randomizer refactoring

1) Created Fix JDK selector class
2) Added optional switch processing
3) Added logic to handle window platform
4) Added some test cases
4) Reworked enviroment generation method