Support/PathV2: Add identify_magic.