Fix for detecting java home on Linux