Extract the common root directory and display in separate line. Use the routine from the cvs plugin for that, moving it to stringutils.h.