Select HADOOP_HOME more safely