Fix java search functionality.

Updated to search the JAVA_HOME env for java, and not just the preset paths. This fixes issues that can easily occur on custom linux setups. See my pull request to the MCP repo on BitBucket: https://bitbucket.org/Brunner/mcp/pull-request/2/fixed-an-issue-in-which-mcp-searched-only/diff.