fixing apt.mod_repo to work on ubuntu < 12.04

fixing issue 5809