adding logic for ubuntu apt-add-repository call