Use a customized table format in Python tabulate for pretty printing
tables.
Stop using os.path.commonprefix() when calculating common prefix
of paths because it searches for string prefix.