add longest_common_prefix in rpmkit.utils, generalized version of rpmkit.swapi.longest_common_prefix