[SPARK-2746] Set SBT_MAVEN_PROFILES only when it is not set explicitly b...

...y the user.