helper fn to get package manager