Update mapping rules if a folder or project is renamed.

Change-Id: I570c97facd2f1e41d77d6077a4f228c347e963b9