Fix Java detection for OpenJDK
Fix Java detection for OpenJDK

See https://github.com/NativeScript/nativescript-cli/issues/866

tsvetie/nativescript-cli,NathanaelA/nativescript-cli,tsvetie/nativescript-cli,NathanaelA/nativescript-cli,NathanaelA/nativescript-cli,NativeScript/nativescript-cli,tsvetie/nativescript-cli,NativeScript/nativescript-cli,NathanaelA/nativescript-cli,NativeScript/nativescript-cli,tsvetie/nativescript-cli,NativeScript/nativescript-cli,tsvetie/nativescript-cli