make hdfs cdh3 compatible
make hadoop version a config option.

Use different commands for cdh3 and cdh4.
Merge pull request #7 from jcrobak/cdh3-support

make hdfs cdh3 compatible