builder: fix repo existance check