if hadoopVersion is passed to build is 2.x, use correct libraries