SBT: determine common ancestor of content root paths
(cherry picked from commit af0c70a)
SBT: use project IDs as module names
(cherry picked from commit 4a94ca7)