Store a hashed file path and use it for the unique check
Fix up failing test