Do not include the path in map references.
(cherry picked from commit 9cbd6898b9deb1a21b796933ba6f4e6dd801172e)