sphinx: improve building with tags