Set the HOME environment variable if it's not set

The Splunk command-line tools want to cache auth tokens into the user's
home directory.  If the HOME directory is not set, then we set it to
/tmp and export the variable to prevent unnecessary failures.