Rewrite target names.