add unit test for bug in init_repositories, fix output of eb --avail-repositories