fix check for switch branch on git install