Fix IndexError on "bw repo"

Closes #107.