[SPARK-1631] Correctly set the Yarn app name when launching the AM.