Updated deploy script to support different branches