fixed bug in dir creation with HDFS