fixed bug with errors during distributed cache set up.
Extended HdfsUtil and fixed bug with jar classpath.