support Hadoop 2.x; streamline hadoop detection