small change to support CDH version

Hi Andrew,

I mentioned this in an issue.  I had the need to pass in an explicit CDH version.  The change basically boils down to a parameter with a default value to the *source classes, and using a variable instead of explicitly "4" in the respective repo strings.

Please let me know if you have any questions.

Thanks,

Tom