Fix adding http repo; try curl for https support.