Fix a bug copying pkg list to chroot