Fixed a couple of bugs with apt-repository stuff