Fix path keys in ResourceMap

We need trimPrefix, not TrimLeft