Fixed issues on supporting other HDFS implementations