make branch spec more robust to missing repos