[SPARK-3273][SPARK-3301]We should read the version information from the same place