correct way to search for Java on OS X