Added a conditional step which differentiates between debian and ubuntu repositories.