SBT: handle relative paths in common ancestor detection SCL-6522
(cherry picked from commit 7215347)