Script changes to copy just the needed dependencies