This commit fixes the error message to escape the dollar sign for referencing a literal `$HADOOP_HOME`, which caused an error while trying to generate an error. closes #24878