Fix -P, only define and use mod_tag if repo is multilib