clone correct branch for cookbook repos as well as parent