added the java_home check for linux and mac