Parameterize dbuilds on Scala version.

This allows us to use the same configuration for nightlies and PR validation.

@jsuereth, can you please confirm this still works for q-team nightlies? you'll need to export at least `SCALA_VERSION` when calling dbuild.