Fix bug where mkdir_on_hdfs not work correctly on Hadoop 2.2 / 0.23.