changes for webhdfs in hdfsdirectory.rb