Use a generic method to establish the hadoop classpath.  Requires hadoop command in classpath and works with 1.x and 2.x