Adding workaround for SPARK_PREPEND_CLASSES