Use non-recursive copy operation to fix path too long exception during "kpm pack"

parent #807