chomp java_home, check if building head