Fix detection of path conflicts.
Fix detection of path conflicts.

 - os.path.commonprefix does not work as expected to return
   path component prefixes, but rather works on character
   by character basis.

tkruse/wstool,vincentrou/wstool,wkentaro/wstool,tkruse/wstool,vincentrou/wstool