update install script
helm: only check the remote branch if a branch is given

Only check for the remote branch if one is given. If not, don't
checkout any branches.