fixed a bug of HADOOP_HOME & HADOOP_PREFIX
fixed a bug of localip obtain