Merge pull request #700 from Viper-7/master

ADDED: Java version detection for OSX
FIXED: Permission error from OSX Java version detection