making the deploy script more generic for copying