make hadoop version a config option.

Use different commands for cdh3 and cdh4.