turn off rewrites and fix add-apt-repository issue