[top] / posixpath / commonprefix
commonprefix(m)
Given a list of pathnames, returns the longest common leading component