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