Syncing up deploy script from release branch. Should be identical now.