Made the way how to collect paths to copy more generic and configurable