Let java_home in if statement