Fix hdfs chmod failure in hadoop 1.x