using jdkdetect in build scripts