make function to select the proper package manager