Use stdlib for finding longest common prefix

``longest_common_prefix(strings)`` can be replaced with ``os.path.commonprefix(strings)``.