check SPARK_CONF_DIR instead of checking properties file