fixing build script to install jdk correctly