SPARK-3745 - fix check-license to properly download and check jar