Update deploy script to support branches