$pkg_list should be an array, not a string