Fix some IF statements, run apt-add-repository in non-interactive mode