CSPACE-6273: Remove unused scripts to set custom Facter facts. Convert custom Puppet function that returns a candidate value for the JAVA_HOME environment variable to a standalone script that substitutes or appends that value to a specified file, given its path.