[SPARK-2746] Set SBT_MAVEN_PROFILES only when it is not set explicitly by the user.

yeah we have both styles in spark at the moment, probably would make sense to consolidate them