fixed improper exit of sbt run and added windows support