builder: Fix prefix rewrite