[PLAT-4217] Copy dependencies during pre-package phase