Split package names into operating-system specific arrays.