Allow spaces in parameters

Also use SPARK_DRIVER_MEMORY instead of the deprecated SPARK_MEM