SPARK-1121 Only add avro if the build is for Hadoop 0.23.X and SPARK_YARN is set