fixing apt.mod_repo to work on ubuntu < 12.04