Fix paths when they're recorded
More robustness and debuggability for getIdentifier