only add go to path if installed
only use java_home program if it exists