BS-2861
Improve dependencies copy