Update for sbt 0.12

Pull request for issue #18.

I'm not 100% sure about this but it seems to work. The SBT code is pretty complicated so I'm not exactly sure what I did :P