Auto detect running from sbt