Modified deploy script to support multiple branches.