Branch detection on install command