updated readme [skip ci]
check config vars before setting them
fixed a bug in setting config vars, and improved the jdk version tests