Copy caskdata/cdap#741 to use JAVACMD... thanks @sumitsu
Merge pull request #815 from caskdata/feature/cdap-pr741

Use JAVACMD rather than path-default java to check Java version