Fix a check in sbt/sbt (if there are multiple command line args, sbt/sbt throws an error in line 8).
Use env shortcut in build file for YARN build.