Add extrarepos dynamically instead of hard-coding

I know this excludes some of the if statement (osver[0] != 4), but I think it simplifies it enough to be worthwhile. Should contribute to solving Issue 72.