fix: ensure active Spark session retrieval only for supported versions (#203)