nit - should be:

    val sparkHome: File = new File(Option(System.getenv("SPARK_HOME")).getOrElse("."))