Cache SBT dep directories

This is not so much for performance, but to reduce spurious build
failures due to download failures.