Automatically set the sbt-osgi version for the scripted test.

Review by @jsuereth