If project wasn't packaged it will be packaged by 'sbt package'. Moving this above checking for libraries is indeed a good idea.

I believe that detection of sbt presence\version is a lot harder than detection of scala-library.